package com.rainner.app.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.rainner.app.base.action.JsonAction;
@Results({
	@Result(name="LIBRARYINFO",type="freemarker",location="/WEB-INF/content/public/libraryinfo.ftl")
})
public class LibraryInfoAction extends JsonAction{
	private static final long serialVersionUID = 1L;
	@Action("/libraryinfo")
	public String libraryInfo(){
		HttpSession session = ServletActionContext.getRequest().getSession();
		Object username = session.getAttribute("username");
		map.put("username", username.toString());
		return "LIBRARYINFO";
	}
}
